from modelscope.hub.snapshot_download import snapshot_download

model_id = 'Qwen/Qwen2.5-14B-Instruct'
local_dir = '/yfzx/models/Qwen2.5-14B-Instruct'
cache_path = snapshot_download(model_id, cache_dir=local_dir) # 模型下载保存目录
print(cache_path)